<template>
  <a-config-provider :getPopupContainer="getPopupContainer" :locale="locale">
    <router-view></router-view>
  </a-config-provider>
</template>
<script setup>
import { ref } from 'vue';
console.log('App.vue is mounted')
import zhCN from 'ant-design-vue/es/locale/zh_CN';
const locale = ref(zhCN);

const getPopupContainer = (el, dialogContext) => {
    if (dialogContext) {
      return dialogContext.getDialogWrap();
    } else {
      return document.body;
    }
  }
</script>